<ul id="posts">
  <% articles.select {|a| a[:date] <= Time.now}[0...10].each do |article| %>
    <li class="post">
      <h2><a href="<%= article.path %>"><%= article.title %></a></h2>
      <span class="author"><%= article.author %></span> -
      <time class="date"><%= article.date %></time>
    </li>
  <% end %>
</ul>
